import os
import glob
import datetime

print (glob.glob('*1.py'))
for item in os.scandir('D:/sms/python01'):
    that_time= datetime.datetime.fromtimestamp(item.stat().st_ctime)
    print(item.name,that_time)
    print(that_time.hour,that_time.minute)

# for dirpath,dirnames,filenames in os.walk('D:\\data'):
#     print(f'发现文件夹{dirpath}')
#     print(filenames)